// app.js
App({
    onLaunch: function() {
        //初始化加载，先判断用户登录状态
        if (wx.getStorageSync('electricianCode')) {
            wx.switchTab({
                url: 'pages/FirstPage/FirstPage'
            })
        } else {
            wx.reLaunch({
                url: 'pages/Login-1/Login-1'
            })
        }
    },
})


